import { withParams, req } from 'vuelidate/lib/validators/common'
var dateformat = require('dateformat');

export default () => withParams({ type: 'greaterNowTime' }, value => {
  return req(value) && (new Date()) <= ((typeof value === 'object') ? value : Date.parse(value.replace(/-/g, '/')))
})

